import request from '@/utils/request'

export const getGoodsList = (data:any, params:any) => {
	return request({
	    url:'/mall/o/v1/gsList',
	    method:'post',
	    data:data,
	    params:params,
		noLoading:data.noLoading,
	})
}

export const getGoodsDetail = (data:any) => {
	return request({
	    url:'/mall/o/v1/gsDetail',
	    method:'post',
	    data:data
	})
}

export const getGoodsSpec = (data:any) => {
	return request({
	    url:'/mall/o/v1/getCategory',
	    method:'post',
	    data:data
	})
}



//购物车列表
export const getShoppingCart = (data:any) => {
	return request({
	    url:'/mall/shoppingCart/shoppingCartList',
	    method:'post',
	    data:data,
		noJump:data.noJump
	})
}

//购物车添加
export const setShoppingCartAdd = (data:any) => {
	return request({
	    url:'/mall/shoppingCart/add/shopping/cart',
	    method:'post',
	    data:data
	})
}

//删除购物车
export const setShoppingCartDel = (data:any) => {
	return request({
	    url:'/mall/shoppingCart/delShoppingCart',
	    method:'post',
	    data:data
	})
}


//修改购物车重量
export const setShoppingCartWeight = (data:any) => {
	return request({
	    url:'/mall/shoppingCart/repairWeight',
	    method:'post',
	    data:data
	})
}

export const setOrderAdd = (data:any) => {
	return request({
	    url:'/mall/platform/order/customer/add/order',
	    method:'post',
	    data:data
	})
}

export const getCustomer = (data: any) => {
	return request({
	    url:'/system/user/list',
	    method:'get',
	    params:data
	})
}

export const getStorageGoodsList = (data:any, params:any) => {
	return request({
	    url:'/mall/hwgl/list',
	    method:'post',
	    data:data,
	    params:params,
		noLoading:data.noLoading,
	})
}

export const getStorageGoodsDetail = (data: any) => {
	return request({
	    url:'/mall/hwgl/details',
	    method:'post',
	    data:data
	})
}

export const setbatchUpShelves = (data: any, params: any) => {
	return request({
	    url: '/mall/hwgl/batch/up/shelves/' + params.status,
	    method:'post',
	    data:data,
	})
}

export const setUpShelves = (data: any) => {
	return request({
	    url:'/mall/hwgl/up/shelves',
	    method:'post',
	    data:data
	})
}









